package com.kkm.dao;

import com.kkm.pojo.Goods;
import com.kkm.pojo.Order;

import java.util.List;
import java.util.Map;

public interface GoodsDao {
    //展示所有订单
    List<Goods> showGoods(int index, int rows);

    int checkGoodsCount();
    //根据名字查询订单
    int checkGoodsNum(Map<String, String[]> condition);

    List<Goods> checkGoods(Map<String, String[]> condition, int index, int rows);

    void deleteGoods(int gid);


    Goods goodsById(int id);
    //修改用户
    void modifyGoods(double price, int number, int gid);

    void  addGoods(String gname, double price, int number, String gtype);
}
